//
//  QTTPublicLabel.m
//  QuTouTiao
//
//  Created by 杨杨子 on 2018/6/30.
//  Copyright © 2018年 杨杨子. All rights reserved.
//

#import "QTTPublicLabel.h"

@implementation QTTPublicLabel
-(instancetype)initWithFrame:(CGRect)frame
                   alignment:(NSTextAlignment)alignment
                   textColor:(UIColor *)textColor
             backgroundColor:(UIColor *)backgroundColor
                        font:(double)font
                    delegate:(UIView *)delegate{
    self = [super initWithFrame:frame];
    if (self) {
        [delegate addSubview:self];
        self.textAlignment = alignment;
        self.textColor = textColor;
        self.font = [UIFont systemFontOfSize:font];
        if (backgroundColor == nil) {
            backgroundColor = [UIColor clearColor];
        }
        self.backgroundColor = backgroundColor;
    }
    return self;
}

@end
